<?php
require_once 'smarty/Smarty.class.php';
class ExtSmarty extends Smarty
{
    function __construct($params)
    {
        $this->Smarty();
        $this->template_dir     = $params['template_dir'];
        $this->compile_dir      = $params['compile_dir'];
        $this->config_dir       = $params['config_dir'];
        $this->cache_dir        = $params['cache_dir'];
        $this->left_delimiter   = $params['left_delimiter'];
        $this->right_delimiter  = $params['right_delimiter'];
    }
}